$def with (categories)
$if not categories == None and not categories == []: 
	<div class="widget-categories">
		<h3 class="widget-header">Categories</h3>
		<div class="widget-content">
			<ul>
				 $for c in categories:
				     <li><a href="$config.search_url?type=category&value=$c.name&start=$config.start&limit=$config.limit">$c.name ($c.count)</a></li>
			</ul>
		</div>
	</div>